import asyncio
from lib.log.index import watchdog_logger

__service__ = "watch_dog"
__description__ = "watch asyncio services"

interval = 5000
count = 0

def init():
    watchdog_logger.clean()
    print("watch dog start")

async def run():
    global count
    while True:
        count += 1
        watchdog_logger.log(f"feed:{count}")
        await asyncio.sleep_ms(interval)
